package com.bjsxt.chapter1_singleton;

/**
 * @ClassName Client
 * @Description 测试各种单例模式的写法
 * @Author 黑马程序员
 * @Date 18:49 2024/6/18
 * @Version 1.0
 **/
public class Client {
    public static void main(String[] args) {
        Integer i = 10;
        Boolean b = true;
        SingletonDemo5 s1 = SingletonDemo5.INSTANCE;
        SingletonDemo5 s2 = SingletonDemo5.INSTANCE;
        System.out.println(s1 == s2);
        System.out.println(s1);
        System.out.println(s2);
    }
}
